package com.yyys.web.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by zhengsenwen on 2017/8/4.
 */

@Entity
@IdClass(GoodsInfoIdClass.class)
@Table(name = "Flow_GoodsList")
public class GoodsInfo implements Serializable {
    private static final Long serialVersionUID = 1L;

    private String ctid;
    private String goodsId;
    private String goodsName;
    private String goodsTypeId;
    private String goodsTypeName;
    private BigDecimal goodsPrice;
    private String goodsFW;
    private String goodsTJZSId;
    private String goodsPicAddress;

    @Id
    @Column(name = "CTID", nullable = false)
    public String getCtid() {
        return ctid;
    }

    public void setCtid(String ctid) {
        this.ctid = ctid;
    }


    @Column(name = "goodsID", nullable = false)
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    @Id
    @Column(name = "goodsName", nullable = false, length = 200)
    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    @Column(name = "goodsTypeID", nullable = false)
    public String getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(String goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    @Id
    @Column(name = "goodsTypeName", nullable = true, length = 200)
    public String getGoodsTypeName() {
        return goodsTypeName;
    }

    public void setGoodsTypeName(String goodsTypeName) {
        this.goodsTypeName = goodsTypeName;
    }

    @Column(name = "goodsPrice", precision = 18, scale = 2, nullable = true)
    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }


    @Column(name = "goodsFW", nullable = true)
    public String getGoodsFW() {
        return goodsFW;
    }

    public void setGoodsFW(String goodsFW) {
        this.goodsFW = goodsFW;
    }

    @Column(name = "goodsTJZSID", nullable = true)
    public String getGoodsTJZSId() {
        return goodsTJZSId;
    }

    public void setGoodsTJZSId(String goodsTJZSId) {
        this.goodsTJZSId = goodsTJZSId;
    }

    @Column(name = "goodsPicAddress", nullable = false, length = 200)
    public String getGoodsPicAddress() {
        return goodsPicAddress;
    }

    public void setGoodsPicAddress(String goodsPicAddress) {
        this.goodsPicAddress = goodsPicAddress;
    }

}
